/* SmartUI Studio - 报告页面样式 */

/* 报告路径 */
.report-path {
    display: flex;
    align-items: center;
}

.separator {
    margin: 0 8px;
    color: var(--gray-color);
}

.path {
    color: var(--gray-color);
    font-weight: 500;
}

/* 报告工具栏 */
.report-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: var(--header-height);
    z-index: 900;
}

.toolbar-left, .toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.report-title {
    margin: 0;
    font-weight: 500;
    color: var(--dark-color);
}

/* 报告容器 */
.report-container {
    padding: 16px;
    background-color: var(--light-color);
    min-height: calc(100vh - var(--header-height) - 60px);
}

/* 报告部分 */
.report-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    overflow: hidden;
}

.report-section h5 {
    margin: 0;
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

/* 报告摘要 */
.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.summary-header h5 {
    margin: 0;
    padding: 0;
    border: none;
}

.summary-content {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.summary-item {
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-weight: 500;
    color: var(--gray-color);
    margin-bottom: 4px;
}

.summary-value {
    font-size: 16px;
}

/* 测试结果统计 */
.stats-container {
    padding: 16px;
}

.stats-charts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.chart-container {
    flex: 1;
    min-width: 300px;
    height: 250px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
}

.stats-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-around;
}

.stat-card {
    width: 120px;
    height: 120px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-color);
}

.stat-card.success .stat-value {
    color: var(--secondary-color);
}

.stat-card.warning .stat-value {
    color: #f9ab00;
}

.stat-card.danger .stat-value {
    color: var(--accent-color);
}

/* 测试用例详情 */
.table-container {
    padding: 0 16px 16px;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-passed {
    background-color: #e6f4ea;
    color: var(--secondary-color);
}

.status-failed {
    background-color: #fce8e6;
    color: var(--accent-color);
}

.status-partial {
    background-color: #fef7e0;
    color: #f9ab00;
}

/* 问题与建议 */
.issues-container {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 16px;
}

.issue-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.issue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
}

.issue-type {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.issue-type i {
    margin-right: 6px;
}

.issue-type.error {
    color: var(--accent-color);
}

.issue-type.warning {
    color: #f9ab00;
}

.issue-type.info {
    color: var(--primary-color);
}

.issue-id {
    font-size: 12px;
    color: var(--gray-color);
}

.issue-content {
    padding: 12px;
}

.issue-content h6 {
    margin: 0 0 8px;
    font-weight: 500;
}

.issue-content p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-color);
}

.issue-footer {
    padding: 8px 12px;
    border-top: 1px solid var(--border-color);
    background-color: #f8f9fa;
    font-size: 12px;
    color: var(--gray-color);
}

/* 测试环境 */
.environment-container {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.environment-item {
    display: flex;
    flex-direction: column;
}

.environment-label {
    font-weight: 500;
    color: var(--gray-color);
    margin-bottom: 4px;
}

/* 测试用例详情模态框 */
.case-detail-container {
    padding: 16px;
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.case-header h6 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.case-info {
    margin-bottom: 24px;
}

.info-item {
    margin-bottom: 8px;
}

.info-label {
    font-weight: 500;
    color: var(--gray-color);
    margin-right: 8px;
}

.case-steps, .case-screenshots, .case-logs {
    margin-bottom: 24px;
}

.case-steps h6, .case-screenshots h6, .case-logs h6 {
    margin: 0 0 12px;
    font-weight: 500;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.steps-list {
    padding-left: 20px;
}

.steps-list li {
    margin-bottom: 8px;
}

.step-status {
    margin-left: 8px;
}

.screenshots-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.screenshot {
    width: 200px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.screenshot img {
    width: 100%;
    height: auto;
}

.screenshot-caption {
    padding: 8px;
    background-color: #f8f9fa;
    font-size: 12px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.logs-container {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .summary-content, .stats-charts, .issues-container, .environment-container {
        grid-template-columns: 1fr;
    }
    
    .toolbar-right {
        display: none;
    }
    
    .report-toolbar {
        padding: 8px 12px;
    }
    
    .report-title {
        font-size: 18px;
    }
}